package com.example.mybatisplusdemo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO  Mybatis-plus 的分页插件配置类
 *
 * @ClassName MybatisPlusConfig
 * @Author xiaojiang
 * @Date 2021/10/25 下午 17:57
 */
@Configuration
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
